package demo5;

public class Demo {

    public static void main(String[] args) {
        Singleton s1 = Singleton.getInstance();
        Singleton s2 = Singleton.getInstance();

        System.out.println(s1);
        System.out.println(s2);

        Student st1 = Student.getInstance();
        Student st2 = Student.getInstance();

        System.out.println(st1);
        System.out.println(st2);
    }
}
